<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

function tj() {
$.ajax({
type: "POST",
url: "./index.php?c=site&a=entry&op=lineadd&do=line&m=wn_asktaxi",
cache: false,
data: $('#tab').serialize(),
success: function (data) {
data = $.trim(data);
switch (data) {
case '0':
alert('添加成功');
window.location.replace("./index.php?c=site&a=entry&do=line&m=wn_asktaxi")
break;
case '1':
alert('添加失败');

break;
default:
alert(data);
}
}
})
}
</body>
</html>